package com.hr.controller;

import com.hr.User;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("user")
public class UserController {
    @GetMapping("hello")
    public User getUser(){
        User user = new User();
        user.setUsername("张三");
        user.setPassword("123");
        user.setAge(18);
        user.setSex("男");
        System.out.println("user = " + user);
        return user;
    }
}
